<form class="form-horizontal" method="post" width="500px">
  <fieldset>
    <legend>添加会员</legend>
    <div class="form-group">
      <label for="user[name]" class="col-sm-2 control-label">姓名</label>
      <div class="col-sm-10">
        <input type="text" name="user[name]" class="form-control" placeholder="输入姓名" />
      </div>
    </div> 
    <div class="form-group">
      <label for="user[rankType]" class="col-sm-2 control-label">级别</label>
      <div class="col-sm-10">
        <select class="form-control" name="user[rankType]">
        <% locals.ranks.forEach(function(rank,index){ %>
          <option><%= rank.type %></option>
          <% }); %>
        </select>
      </div>
    </div> 
    <div class="form-group">
      <label for="user[sex]" class="col-sm-2 control-label">性别</label>
      <div class="col-sm-10">
        <label class="radio-inline">
          <input type="radio" id="inlineCheckbox2" name="user[sex]" value="男"> 男
        </label> 
        <label class="radio-inline">
          <input type="radio" id="inlineCheckbox1" name="user[sex]" value="女" checked> 女
        </label> 
      </div>
    </div> 
    <div class="form-group">
      <label for="user[birthday]" class="col-sm-2 control-label">生日</label>
      <div class="col-sm-10">
        <input type="date" name="user[birthday]" class="form-control" placeholder="生日" value="1988-04-07"/>
      </div>
    </div> 
    <div class="form-group">
      <label for="user[tel]" class="col-sm-2 control-label">电话</label>
      <div class="col-sm-10">
        <input type="tel" name="user[tel]" class="form-control" placeholder="电话" />
      </div>
    </div> 
    <div class="form-actions">
      <button type="submit" class="btn btn-primary">添加</button>
      <button type="button" class="btn btn-default" onclick="javascript:history.back(-1)">取消</button>
    </div>
  </fieldset>
</form>